package main

import (
	"fmt"
	"zxl.com/upload-nexus/common"
)

func main() {
	// 加载配置
	config, err := common.LoadConfig("config.properties")
	if err != nil {
		fmt.Println("加载config.properties配置失败: ", err)
		return
	}
	if config.MavenRepo != "" {
		common.RunMavenUpload(config)
	}
	if config.NpmRepo != "" {
		common.RunNpmUpload(config)
	}

}
